package org.judking.CarKeeper.activity;

import org.achartengine.ChartFactory;
import org.achartengine.chart.PointStyle;
import org.achartengine.model.XYMultipleSeriesDataset;
import org.achartengine.model.XYSeries;
import org.achartengine.renderer.XYMultipleSeriesRenderer;
import org.achartengine.renderer.XYSeriesRenderer;
import org.judking.CarKeeper.R;
import org.judking.CarKeeper.command.PddObdCommand;
import org.judking.CarKeeper.service.StcActivityService;

import android.content.Intent;
import android.graphics.Color;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class BasicDataItemOnClickListener implements OnClickListener {
	private PddObdCommand cmd;
	
	public BasicDataItemOnClickListener(PddObdCommand cmd)			{
		this.cmd = cmd;
	}

	@Override
	public void onClick(View v) {
		Message msg = StcActivityService.handler.obtainMessage(MainActivity.SHOW_BASIC_DATA_CHART, cmd);
		StcActivityService.handler.sendMessage(msg);
	}

}
